using System.Collections;
using System.Collections.Generic;
using UnityEngine.EventSystems;
using UnityEngine;
using UnityEngine.UI;
namespace LitToolsTest
{
    public class ButtonClickLog : MonoBehaviour, IPointerClickHandler, IPointerDownHandler, IPointerUpHandler
    {
        public void OnPointerClick(PointerEventData eventData)
        {
            Debug.Log(name + ":OnPointerClick");
        }

        public void OnPointerDown(PointerEventData eventData)
        {
            Debug.Log(name + ":OnPointerDown");
        }

        public void OnPointerUp(PointerEventData eventData)
        {
            Debug.Log(name + ":OnPointerUp");
        }

        private void Start()
        {
            GetComponent<Button>().onClick.AddListener(() =>
            {
                Debug.Log(name + ":OnButtonClick");
            });
        }
    }
}